-------------------------------------------------------------------- Pseudo Source Code of 4 TF Hull HMA 20 Strategy 0.3314 with parameter names. Generated by StrategyQuant version 3.8.1 Generated at Tue May 31 01:46:00 GMT 2016 Tested on GBPUSD, H1, 01.01.2015 - 19.05.2016 Spread: 2.2, Slippage: 0.0, Min distance of stop from price: 5.0 -------------------------------------------------------------------- ==================================================================== == Entry conditions ==================================================================== LongEntryCondition = (iCustom(NULL,0, "4 time frame Hull trend nmc", Current time frame,next1,next2,next3,14,0,4 Time hull trend,0,DarkGray,5,1.5,false,3,true,false,false,hulltre2d,1) > iCustom(NULL,0, "4 time frame Hull trend nmc", Current time frame,next1,next2,next3,14,0,4 Time hull trend,0,DarkGray,5,1.5,false,3,true,false,false,hulltre4d,1)) ShortEntryCondition = (iCustom(NULL,0, "4 time frame Hull trend nmc", Current time frame,next1,next2,next3,14,0,4 Time hull trend,0,DarkGray,5,1.5,false,3,true,false,false,hulltre2d,1) < iCustom(NULL,0, "4 time frame Hull trend nmc", Current time frame,next1,next2,next3,14,0,4 Time hull trend,0,DarkGray,5,1.5,false,3,true,false,false,hulltre4d,1)) ==================================================================== == Entry orders ==================================================================== -- Long entry if LongEntryCondition is true { Reverse existing order (if any) and Buy on open at Market; Stop Loss = 57 pips; Profit Target = 201 pips; // Stop trailing (on close) Move Stop to (iCustom(NULL,0, "HMA_20", 20,0,Linear weighted,Typical Price,ExtSignalBuffer,1) + (0.7) * 170.0 pips)) on bar close; } -- Short entry if ShortEntryCondition is true { Reverse existing order (if any) and Sell on open at Market; Stop Loss = 57 pips; Profit Target = 201 pips; // Stop trailing (on close) Move Stop to (iCustom(NULL,0, "HMA_20", 20,0,Linear weighted,Typical Price,ExtSignalBuffer,1) + (-0.7) * 170.0 pips)) on bar close; }